//
//  M1User.m
//  NewMarryU
//
//  Created by apple on 2018/7/20.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1User.h"

@implementation M1User
+(M1User *)user{
    return [M1SaveTool m1_userConfig];
}


+(void)m1_uploadInfo:(void(^)(M1User *user))block{
    [M1HttpNet requestWithMethod:m1_user_info_url params:nil success:^(id resDic, NSInteger code, NSString *message) {
        NSMutableDictionary *m1_dic = [resDic mutableCopy];
        [m1_dic setObject:[M1User user].token forKey:@"token"];
        [M1User save:m1_dic];
        M1User *user = [M1User mj_objectWithKeyValues:resDic];
        block(user);
    } fail:^(id resDic, NSInteger code, NSString *message) {
        
    } showAni:NO];
}

@end

@implementation M1Status

@end
@implementation M1IdentityInfo
+(NSDictionary *)mj_objectClassInArray{
    return @{@"identity":[M1Picture class]};
}
@end
@implementation M1CarInfo
+(NSDictionary *)mj_objectClassInArray{
    return @{@"car":[M1Picture class]};
}
@end
@implementation M1HoseInfoInfo
+(NSDictionary *)mj_objectClassInArray{
    return @{@"house":[M1Picture class]};
}
@end
@implementation M1basic

@end
@implementation M1Auth

@end
@implementation M1Education
+(NSDictionary *)mj_objectClassInArray{
    return @{@"education":[M1Picture class]};
}
@end
@implementation M1Image

@end
@implementation M1Picture
+(NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"img_id":@"id"};
}
@end
